<script>
$('#suppliers').change(function(){
	var paymethod = $('#suppliers option:selected').data('paymethod');
	var deliverymode = $('#suppliers option:selected').data('deliverymode');
	$('#paymethod').val(paymethod);
	$('#deliverymode').val(deliverymode);
});

$('#confirm').click(function(){
    $.post('{{ urlfor "EntryreturnController.Save" }}', $('#formDoSubmit-select').serialize(), function(res){
        if(res.code == 0) {
            parent.SelectSuppliersRollBack(res.data);
            return true;
        } else {
            layer.msg(res.msg);
        }
    }, 'json');
});
</script>